package com.pand.model.customer;

import com.pand.model.BaseObject;

import javax.persistence.*;

/**
 * 
 * @ClassName: CustomerLevel 
 * @Description:客户级别
 *
 */
@Entity
@Table(name = "BIZ_CUSTOMER_LEVEL")
@SequenceGenerator(name = "SeqCustomerLevel", sequenceName = "SEQ_CUSTOMER_LEVEL", allocationSize = 1)
public class CustomerLevel extends BaseObject {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2699502801230116980L;
	
	/**
	 * 主键
	 */
	private Long id;
	
	/**
	 * 客户类型
	 */
	private Integer customerType;
	
	/**
	 * 级别名称
	 */
	private String levelName;
	
	/**
	 * 级别编码
	 */
	private String levelCode;
	
	/**
	 * 是否默认
	 */
	private Integer isDefault;

	private Double discount;
	
	/**
	 * 积分
	 */
	private Long score;
	
	@Id
	@GeneratedValue(generator = "SeqCustomerLevel")
	@Column(name = "ID")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name = "LEVEL_CODE")
	public String getLevelCode() {
		return levelCode;
	}
	public void setLevelCode(String levelCode) {
		this.levelCode = levelCode;
	}
	@Column(name = "CUSTOMER_TYPE")
	public Integer getCustomerType() {
		return customerType;
	}
	public void setCustomerType(Integer customerType) {
		this.customerType = customerType;
	}
	@Column(name = "LEVEL_NAME")
	public String getLevelName() {
		return levelName;
	}
	public void setLevelName(String levelName) {
		this.levelName = levelName;
	}
	@Column(name = "IS_DEFAULT")
	public Integer getIsDefault() {
		return isDefault;
	}
	public void setIsDefault(Integer isDefault) {
		this.isDefault = isDefault;
	}
	@Column(name = "DISCOUNT")
	public Double getDiscount() {
		return discount;
	}
	public void setDiscount(Double discount) {
		this.discount = discount;
	}
	@Column(name = "SCORE")
	public Long getScore() {
		return score;
	}
	public void setScore(Long score) {
		this.score = score;
	}
	
	
}
